<div class='fui-page  fui-page-current'>
    <div class="fui-header">
		<div class="title">会员资料</div> 
		<div class="fui-header-right">&nbsp;</div>
	</div>
	<div class='fui-content'>
		<div class="fui-cell-group">
			<div class="fui-cell must ">
				<div class="fui-cell-label ">会员姓名</div>
				<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="设置昵称" ng-model="pagedata.post.name" /></div>
			</div>
			<div class="fui-cell must ">
				<div class="fui-cell-label ">手机号</div>
				<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="设置手机号" ng-model="pagedata.post.mobile" /></div>
				<div ng-if="pagedata.post.login_type>0 && !pagedata.bindmobile && pagedata.post.oldmobile" class="fui-cell-remark noremark"><a class="btn btn-default btn-default-o btn-sm" ng-click="pagedata.bindmobile=true;pagedata.post.mobile=''">解绑手机</a></div>
				<div ng-if="pagedata.post.login_type>0 && (pagedata.bindmobile || !pagedata.post.oldmobile)" class="fui-cell-remark noremark"><a class="btn btn-default btn-default-o btn-sm" ng-click="tool.mobile_code({'mobile':pagedata.post.mobile,'oldmobile':pagedata.post.oldmobile},'sms_code')" id="sms_code">获取验证码</a></div>
			</div>
			<div ng-if="pagedata.post.login_type>0 && (pagedata.bindmobile || !pagedata.post.oldmobile)" class="fui-cell must ">
				<div class="fui-cell-label ">验证码</div>
				<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="请输入验证码" ng-model="pagedata.post.smscode" /></div>
			</div>
			<div class="fui-cell must ">
				<div class="fui-cell-label">会员账号</div>
				<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="设置账号" ng-model="pagedata.post.username" /></div>
			</div>
			<div class="fui-cell must ">
				<div class="fui-cell-label ">登录密码</div>
				<div class="fui-cell-info"><input type="password" class='fui-input' placeholder="设置密码" ng-model="pagedata.post.password" /></div>
			</div>
			<div class="fui-cell must">
				<div class="fui-cell-label ">所属区域</div>
				<div class="fui-cell-info">
					 <select class="weui_select" name="cateid2" ng-model="pagedata.post.area_id">
                        <option ng-repeat="q in pagedata.areas" value="{{q.id}}">{{q.title}}</option>
                    </select>
				</div>
			</div>
			<div class="fui-cell must">
				<div class="fui-cell-label ">所属医院</div>
				<div class="fui-cell-info">
					 <select class="weui_select" name="cateid2" ng-model="pagedata.post.storeid">
                        <option ng-repeat="q in pagedata.areas[pagedata.post.area_id].stores" value="{{q.id}}">{{q.title}}</option>
                    </select>
				</div>
			</div>
			<div class="fui-cell must">
				<div class="fui-cell-label ">性别</div>
				<div class="fui-cell-info">
					 <select class="weui_select" name="cateid2" ng-model="pagedata.post.sex">
                        <option value="1">男</option>
						<option value="2">女</option>
                    </select>
				</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-label">出生日期</div>				
							<div class="fui-cell-label" style="width:28%">
								<select ng-model="pagedata.post.birth.year" class="form-control tpl-province">
								<option value="" selected="selected">年</option>
								<option ng-repeat="value in pagedata.years" value="{{value}}" ng-selected="pagedata.post.birth.year==value">{{value}}</option>
								</select>
							</div>
							<div class="fui-cell-label" style="width:28%">
								<select ng-model="pagedata.post.birth.month" class="form-control tpl-city">
								<option value="" selected="selected">月</option>
								<option ng-repeat="value in pagedata.months" value="{{value}}" ng-selected="pagedata.post.birth.month==value">{{value}}</option>
								</select>
							</div>
							<div class="fui-cell-label" style="width:28%">
								<select ng-model="pagedata.post.birth.day" class="form-control tpl-district">
								<option value="" selected="selected">日</option>
								<option ng-repeat="value in pagedata.days" ng-show="showday(pagedata.post.birth.year,pagedata.post.birth.month,value)" value="{{value}}" ng-selected="pagedata.post.birth.day==value">{{value}}</option>
								</select>
							</div>
				
			</div>
		</div>
		<a href='javascript:;' ng-click="post(pagedata.post,'post')" class='btn btn-success block'>确认修改</a>
	</div>
</div>
<div ng-include="sys_html('common/_footer')"></div>
